from ronglian_sms_sdk import SmsSDK

accId = '8a216da8804ba8a50180569d0bc0031a'
accToken = '21ae2599aaad47df8a7271a98a54613f'
appId = '8a216da8804ba8a50180569d0cc20321'

def send_sms(phone,code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = phone
    datas = (code,5)
    resp = sdk.sendMessage(tid, mobile, datas)
    return resp
    print(resp)
